using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SSPivot.Common.Cache
{
    #region Helper Classes
    /// <summary>
    /// 缓存配置
    /// </summary>
    public class CacheConfig
    {
        /// <summary>
        /// 获取或设置缓存模式
        /// 可选值: LocalOnly(仅本地)、RedisOnly(仅Redis)、Both(两者同时使用)
        /// 默认值: Both
        /// </summary>
        public CacheMode Mode { get; set; } = CacheMode.Both;
        
        /// <summary>
        /// 获取或设置Redis连接字符串
        /// 格式: host:port
        /// 默认值: "localhost:6379"
        /// </summary>
        public string RedisConnection { get; set; } = "localhost:6379";
    }
    #endregion
}
